﻿@model ComesEnCasa.Web.Models.BusquedaModel
@{
    ViewBag.Title = "Index";
}

@using (Html.BeginForm())
{
    <div class="sort-order curved">
        Ordenar por: 
        @Html.DropDownListFor(m => m.OrdenarPor, new SelectList(Model.Filtros, "Key", "Value"), "Más Resultados")
    </div>
    <hr style="margin-bottom: 15px;"/>
    
    <table>
        <tr>
            <td class="search-left-side">
                <div class="search-box">
                    <div class="title">Búsqueda</div>
                    <div class="control">
                        @Html.RadioButtonFor(m => m.TipoBusqueda, "Restoranes") Restoranes
                    </div>
                    <div class="control">
                        @Html.RadioButtonFor(m => m.TipoBusqueda, "Comidas") Comidas
                    </div>
                    <div style="margin-top: 6px;">
                        @Html.TextBoxFor(m => m.Filtro)
                    </div>
                    <input type="submit" value="Busca ya" class="green-button curved"/>
                </div>
                <div class="filter-box">
                    <div class="title">Definir mejor los resultados</div>
                    <div class="title">Restaurantes Rating</div>
                    <div class="rating-container">
                        @for (int i = 1; i < 6; i++)
                        {
                            <div class="rating-box">
                                @Html.RadioButtonFor(m => m.Rating, i) 
                                <div class="rating rating-@i" style="margin-left: 6px; margin-top: 3px;"></div>
                            </div>
                        }
                    </div>
                </div>
            </td>
            <td>
                
            </td>
        </tr>
    </table>
    
}
